package cn.wolfcode.domain;

import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.HashMap;

@Getter@Setter@ToString
public class Classinfo {
    private Long id;

    private String name;

    private Integer number;

    private Employee employee;

    public String getJson(){
        HashMap<Object,Object> map = new HashMap<>();
        map.put("id",id);
        map.put("name",name);
        map.put("number",number);
        map.put("employeeName",employee.getName());
        map.put("empId",employee.getId());
        return JSON.toJSONString(map);
    }

    public void hahaha(){
        System.out.println("你好呀");
    }

}